<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page session="true" %>
<html>
<head>
<title>일간 캠페인 보고서</title>
</head>
<body width="80%">
	캠페인 정보
	<table border="1" rules="all" width="50%">
		<tr>
			<td>캠페인 명</td>
			<td>${campaignInfo.cpnName}</td>
		</tr>
		<tr>
			<td>광고주</td>
			<td>${campaignInfo.adverName}</td>
		</tr>
		<tr>
			<td>소진건수( 소진금액 )</td>
			<td>${campaignInfo.eCount}건( ${campaignInfo.exAmount}  원 )</td>
		</tr>
		<tr>
			<td>설치당단가</td>
			<td>${campaignInfo.eAmount} 원</td>
		</tr>
		<tr>
			<td>기간</td>
			<td>${campaignInfo.startDt} ~ ${campaignInfo.endDt}</td>
		</tr>
		<tr height="50px">
			<td>creative</td>
			<td align="center"><img src="${campaignInfo.imagefile}" /></td>
		</tr>
	</table>
	<br/>
	<br/>
	일별 소진 보고서
	<table border="1" rules="all" width="100%">
		<thead>
			<tr>
				<th>날짜</th>
				<th>소진수(건)</th>
				<th>소진금액(원)</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${reportList}" varStatus="status">
			<tr>
				<td>${item.daily}</td>
				<td>${item.count1}</td>
				<td>${item.count1 * campaignInfo.eAmount}</td>
			</tr>
			</c:forEach>
			
		</tbody>
	</table>
</body>
</html>